<a>
顯示粗體)<a href="##" title="h1a">...</a><a href="##">...</a>
a[href][title] {font-weight: bold;}
h1#home
≠h1[id="home"]
),在權重上會有差異。<a>
顯示粗體)<a href="https://ithelp.ithome.com.tw/">...</a><a href="##">...</a>
a[href][title] {font-weight: bold;}
*[class|="en"]
:|,選擇所有屬性值為en或en-開頭的元素,例<h1 class="en-header">......</h1>
、<p class="en">......</p>
。p[class~=urgent]
:~,在空白分隔的設定值清單中比對符合urgent字串的元素,例<p class="urgent warning">......</p>
,和p.urgent
相同。<span class="red-robin">...</span>
、<span class="red">...</span>
、<span class="redline">...</span>
、<span class="red hood">...</span>
。<span class="redline">...</span>
。<span class="checked">...</span>
。